package com.fs.ibox.vo;

import java.util.Date;

//市场页面类，属性：名称、藏品id、数量、价格、图片、发布日期
public class MarketCollection {
    private Integer id;
    private String cname;
    private String cid;
    private Integer releasenum;
    private Double price;
    private String cimg;
    private Date startdate;
    private Date enddate;
    private String content;
    private String username;
    private Integer residual;


    public Date getStartdate() {
        return startdate;
    }

    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }


    public MarketCollection() {
    }


    public MarketCollection(Integer id, String cname, String cid, Integer releasenum, Double price, String cimg, Date startdate, Date enddate, String content, String username, Integer residual) {
        this.id = id;
        this.cname = cname;
        this.cid = cid;
        this.releasenum = releasenum;
        this.price = price;
        this.cimg = cimg;
        this.startdate = startdate;
        this.enddate = enddate;
        this.content = content;
        this.username = username;
        this.residual = residual;
    }

    public String getContent() {
        return content;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public Integer getReleasenum() {
        return releasenum;
    }

    public void setReleasenum(Integer releasenum) {
        this.releasenum = releasenum;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getCimg() {
        return cimg;
    }

    public void setCimg(String cimg) {
        this.cimg = cimg;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getEnddate() {
        return enddate;
    }

    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

    public Integer getResidual() {
        return residual;
    }

    public void setResidual(Integer residual) {
        this.residual = residual;
    }

    @Override
    public String toString() {
        return "MarketCollection{" +
                "id=" + id +
                ", cname='" + cname + '\'' +
                ", cid='" + cid + '\'' +
                ", releasenum=" + releasenum +
                ", price=" + price +
                ", cimg='" + cimg + '\'' +
                ", startdate=" + startdate +
                ", enddate=" + enddate +
                ", content='" + content + '\'' +
                ", username='" + username + '\'' +
                ", residual=" + residual +
                '}';
    }
}
